imcontext: Ignore NoSymbol key events
authorMatthias Clasen <mclasen@redhat.com>
Tue, 25 May 2021 17:17:41 +0000 (13:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 25 May 2021 17:20:12 +0000 (13:20 -0400)
These can happen with some XKB options.

Fixes: #3973
gtk/gtkimcontextsimple.c

index 0338b3f187766d39ec6d6fa6879df6653a878a6e..b695d96a0ddfec543f2f45c9506155dd3fac97d7 100644 (file)
@@ -90,6 +90,7 @@ G_LOCK_DEFINE_STATIC (global_tables);
 static GSList *global_tables;
 
 static const guint16 gtk_compose_ignore[] = {
+  0, /* Yes, XKB will send us key press events with NoSymbol :( */
   GDK_KEY_Shift_L,
   GDK_KEY_Shift_R,
   GDK_KEY_Control_L,